<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>Document</title>
        <style>
            .spinner {
              margin: 100px auto;
              width: 32px;
              height: 32px;
              position: relative;
            }
             
            .cube1, .cube2 {
              background-color: #67CF22;
              width: 30px;
              height: 30px;
              position: absolute;
              top: 0;
              left: 0;
               
              -webkit-animation: cubemove 1.8s infinite ease-in-out;
              animation: cubemove 1.8s infinite ease-in-out;
            }
             
            .cube2 {
              -webkit-animation-delay: -0.9s;
              animation-delay: -0.9s;
            }
             
            @-webkit-keyframes cubemove {
              25% { -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5) }
              50% { -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg) }
              75% { -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5) }
              100% { -webkit-transform: rotate(-360deg) }
            }
             
            @keyframes cubemove {
              25% {
                transform: translateX(42px) rotate(-90deg) scale(0.5);
                -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
              } 50% {
                transform: translateX(42px) translateY(42px) rotate(-179deg);
                -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);
              } 50.1% {
                transform: translateX(42px) translateY(42px) rotate(-180deg);
                -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
              } 75% {
                transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
                -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
              } 100% {
                transform: rotate(-360deg);
                -webkit-transform: rotate(-360deg);
              }
            }
        </style>
    </head>
    <body>
        <h1>使用 CSS3 实现超炫的 Loading（加载）动画效果</h1>
        <p><a href="http://www.cnblogs.com/lhb25/archive/2013/12/28/loading-spinners-animated-with-css3.html">来源</a></p>
        <div class="spinner">
          <div class="cube1"></div>
          <div class="cube2"></div>
        </div>

    </body>
</html>